package cn.edu.nju.freshdelivery.dao;

import java.util.List;

import cn.edu.nju.freshdelivery.model.Buyer;

public interface BuyerDAO {

	public void save(Buyer transientInstance);

	public void delete(Buyer persistentInstance);

	public void update(Buyer persistentInstance);

	public Buyer findById(java.lang.Integer id);

	public List<Buyer> findByExample(Buyer instance);

	public List findByProperty(String propertyName, Object value);

	public List<Buyer> findByUsername(Object username);

	public List<Buyer> findByPassword(Object password);

	public List<Buyer> findByName(Object name);

	public List<Buyer> findByAddress(Object address);

	public List<Buyer> findByPhone(Object phone);

	public List findAll();

	public Buyer merge(Buyer detachedInstance);

	public void attachDirty(Buyer instance);

	public void attachClean(Buyer instance);

}